-- GENERATED SPELL FOR [Coilfang Elite] --


function spell0_22055(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(38260,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22055', 591, 1)
end

function spell1_22055(pUnit, Event) --@Hamstring,n/a--
pUnit:FullCastSpellOnTarget(38262,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22055', 10318, 1)
end

function Sorts_22055(pUnit, Event)
local choix_sorts_22055 = math.random(0, 1)
if choix_sorts_22055 == 0 then
pUnit:RegisterEvent('spell0_22055', 1, 1)
end
if choix_sorts_22055 == 1 then
pUnit:RegisterEvent('spell1_22055', 1, 1)
end
end

function mob22055_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_22055', math.random(1500, 3000), 1)
end

function mob22055_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22055_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22055_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(22055, 1, 'mob22055_Action')
RegisterUnitEvent(22055, 2, 'mob22055_Leave')
RegisterUnitEvent(22055, 3, 'mob22055_Kill')
RegisterUnitEvent(22055, 4, 'mob22055_Die')
